package com.aurora.app.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "api/error")
public class ErrorController {

	@RequestMapping("/{type}")
	public ModelAndView notFound(@PathVariable String type) {
		ModelAndView mv =null;
		switch(type){
		case "404":
			mv = new ModelAndView("404");
			return mv;
		default:
				mv = new ModelAndView("404");
				return mv;
		}
		
	}
}
